]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "layout: Exclude hidden actors from struts"
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 3 Nov 2021 19:53:06 +0000 (20:53 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 3 Nov 2021 22:50:32 +0000 (23:50 +0100)
The change unvealed a series of mutter bugs that for most
users are worse than the issue that was fixed. So revert
the change on stable branches until the mutter side is
fixed.

This reverts commit cd1102ff30b134e45e9b5ab48318e6a4eae03416.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2022>

js/ui/layout.js

index e3c5f497559c28e1bcb47a3bfa154ceec1f24f46..70ece6cab8870b2f29ef62ca6cbfac5c212b2c83 100644 (file)
@@ -974,9 +974,6 @@ var LayoutManager = GObject.registerClass({
 
         for (i = 0; i < this._trackedActors.length; i++) {
             let actorData = this._trackedActors[i];
-            if (!actorData.actor.get_paint_visibility())
-                continue;
-
             if (!(actorData.affectsInputRegion && wantsInputRegion) && !actorData.affectsStruts)
                 continue;
 
@@ -987,7 +984,7 @@ var LayoutManager = GObject.registerClass({
             w = Math.round(w);
             h = Math.round(h);
 
-            if (actorData.affectsInputRegion && wantsInputRegion)
+            if (actorData.affectsInputRegion && wantsInputRegion && actorData.actor.get_paint_visibility())
                 rects.push(new Meta.Rectangle({ x, y, width: w, height: h }));
 
             let monitor = null;